from dataclasses import dataclass

@dataclass
class TestingEnvironment:
    #测试环境
    MER_HOST = 'https://api.admin.merchant.java.crmeb.net'
    PLAT_HOST = 'https://api.admin.merchant.java.crmeb.net'
    USER_HOST = 'https://api.front.merchant.java.crmeb.net'

@dataclass
class PreProduction:
    #预发布环境
    HOST = 'http://172.16.0.55:8098'
    MOCK = 'http://127.0.0.1:9001'

@dataclass
class DevEnvironment:
    #开发环境
    HOST = 'http://172.16.0.51:8098'
    MOCK = 'http://127.0.0.1:9001'

ENV_MAP = {
    '测试环境': TestingEnvironment,
    '预发布环境': PreProduction,
    '开发环境': DevEnvironment
}

ENV_NAME = '测试环境'
ENV = ENV_MAP[ENV_NAME]()
